home *** CD-ROM | disk | FTP | other *** search
- 0, In this animation, you will see how you can create
- 8, Web sites that use script and components on both
- 11, the client and the server. Let's look at each of
- 15, these in more detail. You can place controls and
- 20, scripting on the client. Controls are self-contained
- 23, applications that can be placed on a Web page.
- 26, They are either ActiveX controls or Java applets.
- 32, Users can interact with controls to submit
- 35, information or simply to use the functionality of the
- 38, control. For example, you can include a calendar
- 43, control on a Web page so a user can select a date for an
- 46, order to be delivered. Client-side script is
- 51, embedded in a Web page and runs on a user's computer.
- 55, You can write script that runs in response to a
- 57, user's interaction with a control. The script can
- 60, retrieve user input from a control, process it, and
- 64, set values for other controls based on the input.
- 69, For example, when the user selects a date on the
- 72, calendar, the client-side script calculates the
- 75, shipping cost and shipping method that will deliver
- 78, the product on time. A Web server can also use
- 83, script and components. By running server-side script
- 87, and calling business objects, the server-side
- 89, script can create HTML responses on the fly. A Web page
- 95, that contains server-side script is an Active
- 98, Server Page. When a user requests an Active Server
- 102, Page, the server-side script will run on the Web
- 105, server. In this example, a user submits the shipping
- 110, form to an Active Server Page and the server-side
- 114, script reads the values of the controls on the
- 116, form, such as the calculated shipping cost and
- 119, shipping method. Server-side script can also call
- 124, businsess objects or ActiveX server components. In this
- 129, example, the ActiveX server component creates a
- 133, unique confirmation number for an order. The Active
- 136, Server Page then incorporates this confirmation
- 139, into the HTML response. When the script on the
- 143, Active Server Page has finished running, the HTML
- 146, response will be returned to the user.
- 150, END